package com.carlinfo.userscenter.stu.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.carlinfo.common.util.PageInfoUtil;
import com.carlinfo.userscenter.stu.pojo.Level;
import com.carlinfo.userscenter.stu.pojo.Students;

public interface IStudentService
{
	/*----------------------学生操作开始----------------------------*/
	/**
	 * 保存一条数据
	 * @param students
	 * @return
	 */
	JSONObject saveOneStudentsService(Students students);
	
	/**
	 * 查询多条数据
	 * @param condMap
	 * @return
	 */
	List<Students> selectListStudentsService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	
	/**
	 * 查询一条数据
	 * @param condMap
	 * @return
	 */
	Students selectOneStudentsService(Map<String, Object> condMap);
	
	/**
	 * 更新一条数据
	 * @param condMap
	 * @return
	 */
	JSONObject updateOneStudentsService(Students students);
	
	/*
	 *删除一条数据
	 */
	JSONObject deleteOneStudentsService(Map<String, Object> condMap);
	
	int selectMaxIdService();
	
	boolean askIsStudentService(Students students);
	/*----------------------学生操作结束----------------------------*/
	
	/*----------------------等级操作开始----------------------------*/
	/**
	 * 保存一条数据
	 * @param level
	 * @return
	 */
	JSONObject saveOneLevelService(Level level);
	
	/**
	 * 查询多条数据
	 * @param condMap
	 * @return
	 */
	List<Level> selectListLevelService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	
	/**
	 * 查询一条数据
	 * @param condMap
	 * @return
	 */
	Level selectOneLevelService(Map<String, Object> condMap);
	
	/**
	 * 更新一条数据
	 * @param condMap
	 * @return
	 */
	JSONObject updateOneLevelService(Level level);
	
	/*
	 *删除一条数据
	 */
	JSONObject deleteOneLevelService(Map<String, Object> condMap);
	/*----------------------等级操作开始----------------------------*/

}
